package com.lonely.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lonely.common.core.domain.StatusInfo;
import com.lonely.product.domain.dto.sewing.QueryOrderSewingPageDTO;
import com.lonely.product.domain.entity.SysOrderSewing;
import com.lonely.product.domain.vo.sewing.QueryOrderSewingPageVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : 黄志标
 * @date: 2025/8/12 9:40
 * @description: 订单车缝mapper
 */
public interface SysOrderSewingMapper extends BaseMapper<SysOrderSewing> {

    /**
     * 车缝分页查询
     *
     * @param page
     * @param queryDto
     * @return
     */
    Page<QueryOrderSewingPageVO> page(Page<QueryOrderSewingPageVO> page, @Param("query") QueryOrderSewingPageDTO queryDto, @Param("type") String type);

    /**
     * 获取车缝状态数量
     *
     * @param queryDto
     * @return
     */
    List<StatusInfo> getStatusTotals(@Param("query") QueryOrderSewingPageDTO queryDto, @Param("type") String type, @Param("dataPermissions") String dataPermissions);
}
